package com.one.blocks.rbac.controller.vo;

import com.one.blocks.mvc.controller.valid.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.groups.Default;
import java.util.Set;

/**
 * @author <a href="mailto:idler41@163.con">idler41</a> created on 2022-05-02 19:34:53
 */
@ApiModel(value = "系统用户")
@Data
@EqualsAndHashCode(callSuper = true)
public class SysUserGroupVo extends SysUserVo {

    /**
     * 初始登录账户信息
     */
    @Valid
    @ApiModelProperty(value = "初始登录账户信息")
    @NotNull(groups = {Default.class, Update.class})
    private SysAccountVo account;

    @ApiModelProperty(value = "角色ID")
    private Set<Integer> roleIds;
}